#!/usr/bin/env bash

basepath=$(cd `dirname $0`; pwd)
basepath=$(cd ../; pwd)
docker run -d --name AipainterOpenresty -p 80:80 --link AipainterAppFpm:appfpm  -v $basepath/docker/nginx.conf:/usr/local/openresty/nginx/conf/nginx.conf:ro  -v $basepath/docker/nginx_conf.d:/etc/nginx/conf.d:ro -v $basepath/docker/ssl:/data/ai-changsha/ssl:ro  -v $basepath/storage:/data/ai-changsha/storage:rw --volumes-from AipainterAppFpm   openresty/openresty
#docker run -d --name AipainterChangshaAppFpm -v $basepath:/data/ai-changsha  appfpm:latest
#docker run -d --name AipainterChangshaOpenresty -p 8080:80 -p 443:443 --link AipainterChangshaAppFpm:appfpm  -v $basepath/docker/nginx.conf:/usr/local/openresty/nginx/conf/nginx.conf:ro  -v $basepath/docker/nginx_conf.d:/etc/nginx/conf.d  --volumes-from AipainterChangshaAppFpm   openresty/openresty
